<?php
class PosttemplateModel extends Model {
	protected $_map = array(
			'qbzl' => 'startweight', 
			'jjzl' => 'increaseweight',
			'mrjbjg' => 'startprice',
			'mrjj' => 'increaseprice',
			
	);
	protected $_validate = array(
			array('tplname','require','模板名称必须！',1), //默认情况下用正则进行验证 
			array('tplname', '', '模板名称已经存在！', 1, 'unique', self::MODEL_BOTH),
			array('startweight', 'number','起步重量为整数！', 1),
			array('increaseweight', 'number','加价重量为整数！',  1 ),
			array('startprice', 'number','起步价格为整数！',  1),
			array('increaseprice', 'number','默认加价为整数！', 1 ),
	);
	
}